package com.cn.zmc.design.chian.service.impl;

import com.cn.zmc.design.chian.domain.ChainDto;
import com.cn.zmc.design.chian.service.ChainService;

public abstract class AbstractChainService implements ChainService {


    ChainService chainService;

    public void execute(ChainDto chainDto) {
         doExecute(chainDto);
        if (chainService != null ) {
            chainService.execute(chainDto);
        }
    }

    public abstract void doExecute(ChainDto chainDto);

    public ChainService getChainService() {
        return chainService;
    }

    public void setChainService(ChainService chainService) {
        this.chainService = chainService;
    }
}
